/**
 * @company : 版权所属 四川北星惯牌科技有限公司
 * @contact : 刘经理 19326416371
 **/
import request from '@/utils/request.js';
const address = {
	getList: (data) => { //获取地区信息
		return request('/address/getAddressList', 'post', data, true)
	},
	addAddress: (data) => { //添加地区信息
		return request('/address/addAddress', 'post', data, true)
	},
	/**
	 * address 地址
	 * latitude 维度
	 * longitude 经度
	 * default 默认 0 1
	 * id
	 */
	editAddress: (data) => { //修改地区信息
		return request('/address/editAddress', 'post', data, true)
	},
	/**
	 * id
	 */
	delAddress: (data) => { //获取地区信息
		return request('/address/deleteAddress', 'post', data, true)
	},
	calculateDistance: (data) => { //获取地区信息
		return request('/address/calculateDistance', 'post', data, true)
	},

}
export default address;